// ===== 多语言翻译数据 =====
const translations = {
    zh: {
        // 导航栏
        "nav.logo": "服务器模组",
        "nav.home": "首页",
        "nav.features": "功能特色", 
        "nav.download": "下载",
        "nav.tutorial": "教程",
        "nav.commands": "命令指南",
        "nav.changelog": "更新日志",
        "nav.about": "关于",
        "nav.bug_feedback": "Bug反馈",
        
        // 主横幅
        "hero.title": "增强附魔模组",
        "hero.subtitle": "Minecraft 1.21.8 终极增强模组",
        "hero.description": "体验前所未有的Minecraft冒险！超强金苹果效果、无限不死图腾、威力强劲的火焰弹投掷，让你的游戏体验提升到全新层次。",
        "hero.download": "立即下载",
        "hero.features": "查看功能",
        "hero.stat.version": "支持版本",
        "hero.stat.platform": "模组平台",
        "hero.stat.current": "当前版本",
        
        // 功能特色
        "features.title": "强大功能特色",
        "features.subtitle": "四大核心功能，重新定义你的Minecraft体验",
        "features.apple.title": "增强金苹果",
        "features.apple.desc": "金苹果效果大幅增强，提供多达9种强力状态效果，包括生命恢复III、吸收III、力量II等，让你在战斗中无所畏惧！",
        "features.totem.title": "无限不死图腾",
        "features.totem.desc": "为不死图腾附魔后，它将获得无限使用能力！死亡时自动复活但不消耗图腾，让你在危险的冒险中永远拥有第二次机会。",
        "features.fireball.title": "超强火焰弹",
        "features.fireball.desc": "右键点击火焰弹即可投掷！造成大范围爆炸伤害和火焰效果，是对付怪物群的终极武器。威力强劲，效果震撼！",
        "features.peaceful.title": "宁静加强模式",
        "features.peaceful.desc": "比原版宁静模式更强大的自定义难度！阻止怪物自然生成，但允许使用刷怪蛋和刷怪笼。坚守者也不会产生讨厌的黑暗效果。",
        
        // 功能特色列表项
        "features.apple.effect1": "生命恢复 III (15秒)",
        "features.apple.effect2": "吸收 III (3分钟)",
        "features.apple.effect3": "抗火 (8分钟)",
        "features.apple.effect4": "力量 II (5分钟)",
        "features.apple.effect5": "速度 II (5分钟)",
        
        "features.totem.effect1": "附魔后永不消耗",
        "features.totem.effect2": "自动复活到1血",
        "features.totem.effect3": "完整图腾效果",
        "features.totem.effect4": "可通过配置开关",
        
        "features.fireball.effect1": "右键投掷操作",
        "features.fireball.effect2": "强力爆炸效果",
        "features.fireball.effect3": "大范围火焰伤害",
        "features.fireball.effect4": "精确投掷轨迹",
        
        "features.peaceful.effect1": "禁止怪物自然生成",
        "features.peaceful.effect2": "允许刷怪蛋使用",
        "features.peaceful.effect3": "刷怪笼正常工作",
        "features.peaceful.effect4": "无坚守者黑暗效果",
        "features.peaceful.effect5": "完整命令控制",
        
        // 下载区域
        "download.title": "下载模组",
        "download.subtitle": "选择适合你的版本，开始你的增强冒险",
        "download.stable": "稳定版",
        "download.source": "源代码",
        "download.deps": "依赖模组",
        "download.required": "必需",
        "download.filesize": "文件大小: ~2.5MB",
        "download.btn": "下载模组文件",
        "download.view_source": "查看源码",
        "download.get_fabric": "获取 Fabric",
        "download.warning": "安装前请注意：",
        "download.warning.desc": "确保已安装 Fabric Loader 和 Fabric API。本模组仅支持 Minecraft 1.21.8 版本。",
        
        // 安装教程
        "tutorial.title": "安装教程",
        "tutorial.subtitle": "简单几步，轻松安装模组",
        "tutorial.step1.title": "安装 Fabric",
        "tutorial.step1.desc": "前往 Fabric官网 下载并安装 Fabric Loader",
        "tutorial.step2.title": "下载依赖",
        "tutorial.step2.desc": "下载 Fabric API 0.129.0+ 版本，这是运行模组的必需依赖",
        "tutorial.step3.title": "安装模组",
        "tutorial.step3.desc": "将下载的模组文件放入 Minecraft 的 mods 文件夹",
        "tutorial.step4.title": "开始游戏",
        "tutorial.step4.desc": "启动 Minecraft，选择 Fabric 配置文件，享受增强的游戏体验！",
        
        // 命令指南
        "commands.title": "命令使用指南",
        "commands.subtitle": "宁静加强模式的完整命令参考",
        "commands.basic": "基础命令",
        "commands.advanced": "高级设置",
        "commands.scenarios": "使用场景示例",
        "commands.note": "注意：",
        "commands.note.desc": "使用这些命令需要OP权限（权限等级2）。刷怪蛋和刷怪笼在宁静加强模式下仍然正常工作。",
        "commands.hint": "💡 点击卡片复制命令",
        "commands.copied": "命令已复制",
        
        // 命令描述
        "commands.help.desc": "显示所有可用命令和功能说明",
        "commands.toggle.desc": "快速开启或关闭宁静加强模式",
        "commands.status.desc": "查看当前所有功能的开启状态",
        "commands.spawning.desc": "控制怪物是否可以自然生成",
        "commands.warden.desc": "控制坚守者是否可以产生黑暗效果",
        
        // 命令类型
        "commands.type.help": "帮助",
        "commands.type.toggle": "切换",
        "commands.type.status": "状态",
        "commands.type.spawning": "生成",
        "commands.type.warden": "坚守者",
        
        // 使用场景
        "commands.scenario.building": "建筑模式",
        "commands.scenario.building.desc": "专心建造，不被怪物打扰",
        "commands.scenario.video": "视频制作",
        "commands.scenario.video.desc": "需要特定怪物时手动生成",
        "commands.scenario.cave": "洞穴探索",
        "commands.scenario.cave.desc": "安全探索深层洞穴",
        
        // 更新日志
        "changelog.title": "更新日志",
        "changelog.subtitle": "查看模组的最新更新和改进",
        "changelog.latest": "最新版本",
        "changelog.stable": "稳定版",
        "changelog.new_features": "🆕 全新功能",
        "changelog.improvements": "🛠️ 改进优化",
        "changelog.known_issues": "📋 已知问题",
        "changelog.tech_features": "🛠️ 技术特性",
        
        // 关于
        "about.title": "关于模组",
        "about.desc1": "加强附魔金苹果是一个为 Minecraft 1.21.8 设计的 Fabric 模组，旨在为玩家提供更丰富、更有趣的游戏体验。模组专注于增强现有物品的功能，而不是添加大量新内容，保持游戏的原版风味。",
        "about.desc2": "我们的设计理念是\"增强而不臃肿\"。每一个功能都经过精心设计和平衡，确保它们能够无缝融入原版游戏体验，同时为玩家带来新的战略选择和乐趣。",
        "about.opensource": "开源免费",
        "about.opensource.desc": "完全开源，永久免费使用",
        "about.compatible": "模组兼容",
        "about.compatible.desc": "与大多数其他模组完美兼容",
        "about.configurable": "高度可配置",
        "about.configurable.desc": "所有功能都可以自由开关",
        "about.stable": "稳定可靠",
        "about.stable.desc": "使用现代 Mixin 技术确保稳定性",
        "about.downloads": "下载量",
        "about.rating": "用户评分",
        "about.users": "活跃用户",
        
        // 页脚
        "footer.title": "加强附魔金苹果",
        "footer.desc": "为 Minecraft 玩家打造的终极增强模组",
        "footer.quicklinks": "快速链接",
        "footer.support": "支持",
        "footer.requirements": "系统要求",
        "footer.copyright": "© 2024 加强附魔金苹果模组. 保留所有权利.",
        "footer.license": "本模组基于 MIT 许可证开源 | Minecraft 是 Mojang Studios 的商标",
        
        // Bug反馈
        "bugfeedback.title": "Bug反馈",
        "bugfeedback.subtitle": "遇到问题？我们来帮你解决",
        "bugfeedback.desc": "如果在使用模组过程中遇到任何问题，请通过以下方式联系我们。我们会尽快处理并解决问题。",
        "bugfeedback.github": "GitHub Issues",
        "bugfeedback.github.desc": "在 GitHub 上提交问题，可以获得最快的响应和技术支持",
        "bugfeedback.email": "邮件反馈", 
        "bugfeedback.email.desc": "发送详细的问题描述到我们的邮箱，我们会及时回复",
        "bugfeedback.discord": "Discord 社区",
        "bugfeedback.discord.desc": "加入 Discord 服务器，与其他玩家交流并获得实时帮助",
        "bugfeedback.report_title": "反馈Bug时请提供以下信息：",
        "bugfeedback.report_minecraft": "Minecraft 版本 (必须是 1.21.8)",
        "bugfeedback.report_fabric": "Fabric Loader 版本",
        "bugfeedback.report_mod": "模组版本",
        "bugfeedback.report_other": "其他已安装的模组列表",
        "bugfeedback.report_steps": "重现问题的步骤",
        "bugfeedback.report_expected": "期望的结果",
        "bugfeedback.report_actual": "实际发生的结果",
        "bugfeedback.report_logs": "游戏崩溃日志（如果有）",
        "bugfeedback.issues_title": "常见问题",
        "bugfeedback.issue1_title": "模组无法加载",
        "bugfeedback.issue1_content": "确保你已安装了正确版本的 Fabric Loader 和 Fabric API。检查 Minecraft 版本是否为 1.21.8。",
        "bugfeedback.issue2_title": "无限图腾不工作",
        "bugfeedback.issue2_content": "确保图腾已经附魔了无限魔咒。使用铁砧或附魔台为图腾添加无限附魔。",
        "bugfeedback.issue3_title": "火焰弹无法投掷",
        "bugfeedback.issue3_content": "右键点击火焰弹进行投掷。确保你的背包中有火焰弹物品，不是火焰弹方块。",
        "bugfeedback.issue4_title": "宁静加强模式命令无效",
        "bugfeedback.issue4_content": "确保你拥有OP权限（等级2或以上）。使用 /peacefulplus help 查看所有可用命令。",
        
        // 在线反馈表单
        "bugfeedback.online_title": "在线反馈",
        "bugfeedback.online_subtitle": "直接在网页上提交问题，我们会尽快回复",
        "bugfeedback.form.type": "问题类型",
        "bugfeedback.form.type_select": "请选择问题类型",
        "bugfeedback.form.type_bug": "Bug报告",
        "bugfeedback.form.type_feature": "功能建议",
        "bugfeedback.form.type_compatibility": "兼容性问题",
        "bugfeedback.form.type_other": "其他问题",
        "bugfeedback.form.email": "邮箱地址",
        "bugfeedback.form.email_placeholder": "请输入您的邮箱地址",
        "bugfeedback.form.title": "问题标题",
        "bugfeedback.form.title_placeholder": "简要描述您遇到的问题",
        "bugfeedback.form.minecraft_version": "Minecraft版本",
        "bugfeedback.form.mod_version": "模组版本",
        "bugfeedback.form.version_other": "其他版本",
        "bugfeedback.form.description": "详细描述",
        "bugfeedback.form.description_placeholder": "请详细描述您遇到的问题，包括错误信息、截图等",
        "bugfeedback.form.reproduction": "重现步骤（可选）",
        "bugfeedback.form.reproduction_placeholder": "请描述如何重现这个问题的具体步骤",
        "bugfeedback.form.other_mods": "其他已安装的模组（可选）",
        "bugfeedback.form.other_mods_placeholder": "列出您已安装的其他模组，有助于排查兼容性问题",
        "bugfeedback.form.submit": "提交反馈",
        "bugfeedback.form.reset": "重置表单",
        "bugfeedback.success.title": "反馈提交成功！",
        "bugfeedback.success.message": "感谢您的反馈，我们会尽快查看并回复。如有紧急问题，请通过GitHub Issues联系我们。",
        "bugfeedback.success.new": "提交新反馈",

        // 返回顶部
        "back_to_top": "返回顶部"
    },
    
    en: {
        // Navigation
        "nav.logo": "Server Mod",
        "nav.home": "Home",
        "nav.features": "Features",
        "nav.download": "Download", 
        "nav.tutorial": "Tutorial",
        "nav.commands": "Commands",
        "nav.changelog": "Changelog",
        "nav.about": "About",
        "nav.bug_feedback": "Bug Feedback",
        
        // Hero Section
        "hero.title": "Enhanced Enchanted Mod",
        "hero.subtitle": "Minecraft 1.21.8 Ultimate Enhancement Mod",
        "hero.description": "Experience unprecedented Minecraft adventures! Enhanced golden apples, infinite totems of undying, powerful fireball throwing - elevate your gaming experience to new heights.",
        "hero.download": "Download Now",
        "hero.features": "View Features",
        "hero.stat.version": "Supported Version",
        "hero.stat.platform": "Mod Platform",
        "hero.stat.current": "Current Version",
        
        // Features
        "features.title": "Powerful Features",
        "features.subtitle": "Four core features that redefine your Minecraft experience",
        "features.apple.title": "Enhanced Golden Apples",
        "features.apple.desc": "Greatly enhanced golden apple effects with up to 9 powerful status effects including Regeneration III, Absorption III, Strength II, making you fearless in combat!",
        "features.totem.title": "Infinite Totems of Undying",
        "features.totem.desc": "After enchanting a totem of undying, it gains infinite usage! Auto-revive on death without consuming the totem, giving you a second chance in dangerous adventures.",
        "features.fireball.title": "Super Fireballs",
        "features.fireball.desc": "Right-click fireballs to throw them! Causes massive explosion damage and fire effects - the ultimate weapon against monster hordes. Powerful and spectacular!",
        "features.peaceful.title": "Peaceful Plus Mode",
        "features.peaceful.desc": "A custom difficulty more powerful than vanilla peaceful mode! Prevents natural monster spawning while allowing spawn eggs and spawners. Wardens won't produce annoying darkness effects.",
        
        // Feature effects
        "features.apple.effect1": "Regeneration III (15s)",
        "features.apple.effect2": "Absorption III (3min)",
        "features.apple.effect3": "Fire Resistance (8min)",
        "features.apple.effect4": "Strength II (5min)",
        "features.apple.effect5": "Speed II (5min)",
        
        "features.totem.effect1": "Never consumed after enchanting",
        "features.totem.effect2": "Auto-revive to 1 health",
        "features.totem.effect3": "Complete totem effects",
        "features.totem.effect4": "Configurable toggle",
        
        "features.fireball.effect1": "Right-click to throw",
        "features.fireball.effect2": "Powerful explosion effects",
        "features.fireball.effect3": "Wide-range fire damage",
        "features.fireball.effect4": "Precise throwing trajectory",
        
        "features.peaceful.effect1": "Prevents natural monster spawning",
        "features.peaceful.effect2": "Allows spawn egg usage",
        "features.peaceful.effect3": "Spawners work normally",
        "features.peaceful.effect4": "No warden darkness effects",
        "features.peaceful.effect5": "Complete command control",
        
        // Download
        "download.title": "Download Mod",
        "download.subtitle": "Choose your version and start your enhanced adventure",
        "download.stable": "Stable Release",
        "download.source": "Source Code",
        "download.deps": "Dependencies",
        "download.required": "Required",
        "download.filesize": "File Size: ~2.5MB",
        "download.btn": "Download Mod File",
        "download.view_source": "View Source",
        "download.get_fabric": "Get Fabric",
        "download.warning": "Before Installation:",
        "download.warning.desc": "Ensure Fabric Loader and Fabric API are installed. This mod only supports Minecraft 1.21.8.",
        
        // Tutorial
        "tutorial.title": "Installation Tutorial",
        "tutorial.subtitle": "Easy steps to install the mod",
        "tutorial.step1.title": "Install Fabric",
        "tutorial.step1.desc": "Visit the Fabric website to download and install Fabric Loader",
        "tutorial.step2.title": "Download Dependencies",
        "tutorial.step2.desc": "Download Fabric API 0.129.0+ version, which is required to run the mod",
        "tutorial.step3.title": "Install Mod",
        "tutorial.step3.desc": "Place the downloaded mod files into Minecraft's mods folder",
        "tutorial.step4.title": "Start Game",
        "tutorial.step4.desc": "Launch Minecraft, select the Fabric profile, and enjoy the enhanced gaming experience!",
        
        // Commands
        "commands.title": "Command Guide",
        "commands.subtitle": "Complete command reference for Peaceful Plus Mode",
        "commands.basic": "Basic Commands",
        "commands.advanced": "Advanced Settings",
        "commands.scenarios": "Usage Scenarios",
        "commands.note": "Note:",
        "commands.note.desc": "These commands require OP permissions (level 2). Spawn eggs and spawners work normally in Peaceful Plus Mode.",
        "commands.hint": "💡 Click card to copy command",
        "commands.copied": "Command copied",
        
        // Command descriptions
        "commands.help.desc": "Display all available commands and feature descriptions",
        "commands.toggle.desc": "Quickly enable or disable Peaceful Plus Mode",
        "commands.status.desc": "View current status of all features",
        "commands.spawning.desc": "Control whether monsters can spawn naturally",
        "commands.warden.desc": "Control whether wardens can produce darkness effects",
        
        // Command types
        "commands.type.help": "Help",
        "commands.type.toggle": "Toggle",
        "commands.type.status": "Status",
        "commands.type.spawning": "Spawning",
        "commands.type.warden": "Warden",
        
        // Usage scenarios
        "commands.scenario.building": "Building Mode",
        "commands.scenario.building.desc": "Focus on building without monster interruptions",
        "commands.scenario.video": "Video Creation",
        "commands.scenario.video.desc": "Manually spawn specific monsters when needed",
        "commands.scenario.cave": "Cave Exploration",
        "commands.scenario.cave.desc": "Safely explore deep caves",
        
        // Changelog
        "changelog.title": "Changelog",
        "changelog.subtitle": "View latest mod updates and improvements",
        "changelog.latest": "Latest Version",
        "changelog.stable": "Stable Release",
        "changelog.new_features": "🆕 New Features",
        "changelog.improvements": "🛠️ Improvements",
        "changelog.known_issues": "📋 Known Issues",
        "changelog.tech_features": "🛠️ Technical Features",
        
        // About
        "about.title": "About the Mod",
        "about.desc1": "Enhanced Enchanted Golden Apple is a Fabric mod designed for Minecraft 1.21.8, aiming to provide players with richer and more interesting gaming experiences. The mod focuses on enhancing existing item functionality rather than adding lots of new content, maintaining the vanilla game feel.",
        "about.desc2": "Our design philosophy is \"enhance without bloat\". Every feature is carefully designed and balanced to seamlessly integrate into the vanilla game experience while bringing new strategic choices and fun to players.",
        "about.opensource": "Open Source & Free",
        "about.opensource.desc": "Completely open source, free forever",
        "about.compatible": "Mod Compatible",
        "about.compatible.desc": "Perfect compatibility with most other mods",
        "about.configurable": "Highly Configurable",
        "about.configurable.desc": "All features can be freely toggled",
        "about.stable": "Stable & Reliable",
        "about.stable.desc": "Uses modern Mixin technology for stability",
        "about.downloads": "Downloads",
        "about.rating": "User Rating",
        "about.users": "Active Users",
        
        // Footer
        "footer.title": "Enhanced Enchanted Golden Apple",
        "footer.desc": "Ultimate enhancement mod for Minecraft players",
        "footer.quicklinks": "Quick Links",
        "footer.support": "Support",
        "footer.requirements": "System Requirements",
        "footer.copyright": "© 2024 Enhanced Enchanted Golden Apple Mod. All rights reserved.",
        "footer.license": "This mod is open source under MIT License | Minecraft is a trademark of Mojang Studios",
        
        // Bug Feedback
        "bugfeedback.title": "Bug Feedback",
        "bugfeedback.subtitle": "Encountered a problem? We're here to help",
        "bugfeedback.desc": "If you encounter any issues while using the mod, please contact us through the following methods. We will address and resolve problems as quickly as possible.",
        "bugfeedback.github": "GitHub Issues",
        "bugfeedback.github.desc": "Submit issues on GitHub for the fastest response and technical support",
        "bugfeedback.email": "Email Feedback",
        "bugfeedback.email.desc": "Send detailed problem descriptions to our email, and we'll respond promptly",
        "bugfeedback.discord": "Discord Community",
        "bugfeedback.discord.desc": "Join our Discord server to chat with other players and get real-time help",
        "bugfeedback.report_title": "When reporting bugs, please provide the following information:",
        "bugfeedback.report_minecraft": "Minecraft version (must be 1.21.8)",
        "bugfeedback.report_fabric": "Fabric Loader version",
        "bugfeedback.report_mod": "Mod version",
        "bugfeedback.report_other": "List of other installed mods",
        "bugfeedback.report_steps": "Steps to reproduce the issue",
        "bugfeedback.report_expected": "Expected result",
        "bugfeedback.report_actual": "Actual result",
        "bugfeedback.report_logs": "Game crash logs (if any)",
        "bugfeedback.issues_title": "Common Issues",
        "bugfeedback.issue1_title": "Mod won't load",
        "bugfeedback.issue1_content": "Ensure you have installed the correct versions of Fabric Loader and Fabric API. Check that your Minecraft version is 1.21.8.",
        "bugfeedback.issue2_title": "Infinite totem not working",
        "bugfeedback.issue2_content": "Make sure the totem has been enchanted with infinity. Use an anvil or enchanting table to add infinity enchantment to the totem.",
        "bugfeedback.issue3_title": "Can't throw fireballs",
        "bugfeedback.issue3_content": "Right-click on the fireball to throw it. Ensure you have fireball items in your inventory, not fireball blocks.",
        "bugfeedback.issue4_title": "Peaceful Plus commands not working",
        "bugfeedback.issue4_content": "Ensure you have OP permissions (level 2 or higher). Use /peacefulplus help to view all available commands.",
        
        // Online Feedback Form
        "bugfeedback.online_title": "Online Feedback",
        "bugfeedback.online_subtitle": "Submit issues directly on the webpage, we'll respond as soon as possible",
        "bugfeedback.form.type": "Issue Type",
        "bugfeedback.form.type_select": "Please select issue type",
        "bugfeedback.form.type_bug": "Bug Report",
        "bugfeedback.form.type_feature": "Feature Request",
        "bugfeedback.form.type_compatibility": "Compatibility Issue",
        "bugfeedback.form.type_other": "Other Issue",
        "bugfeedback.form.email": "Email Address",
        "bugfeedback.form.email_placeholder": "Please enter your email address",
        "bugfeedback.form.title": "Issue Title",
        "bugfeedback.form.title_placeholder": "Briefly describe the issue you encountered",
        "bugfeedback.form.minecraft_version": "Minecraft Version",
        "bugfeedback.form.mod_version": "Mod Version",
        "bugfeedback.form.version_other": "Other Version",
        "bugfeedback.form.description": "Detailed Description",
        "bugfeedback.form.description_placeholder": "Please describe the issue in detail, including error messages, screenshots, etc.",
        "bugfeedback.form.reproduction": "Reproduction Steps (Optional)",
        "bugfeedback.form.reproduction_placeholder": "Please describe the specific steps to reproduce this issue",
        "bugfeedback.form.other_mods": "Other Installed Mods (Optional)",
        "bugfeedback.form.other_mods_placeholder": "List other mods you have installed, helpful for troubleshooting compatibility issues",
        "bugfeedback.form.submit": "Submit Feedback",
        "bugfeedback.form.reset": "Reset Form",
        "bugfeedback.success.title": "Feedback Submitted Successfully!",
        "bugfeedback.success.message": "Thank you for your feedback. We'll review it and respond as soon as possible. For urgent issues, please contact us via GitHub Issues.",
        "bugfeedback.success.new": "Submit New Feedback",

        // Back to top
        "back_to_top": "Back to Top"
    }
};

// 导出翻译数据
if (typeof module !== 'undefined' && module.exports) {
    module.exports = translations;
}